<?php 
/**
 * ... ...
 * ... ...
 *
 */ 

/**
 * 视图类 JJ_AddContactDialog 
 *
 * @access public
 */
class JJ_AddContactDialog 
	//<<[UnmodifiableBlock.Start]::Extends And Implements::>>//
	extends JCAT_GtkDialog
	implements JCAT_IViewForm
	//<<[UnmodifiableBlock.End]::Extends And Implements::>>// 
{
	
	/**
	 * 构造函数 
	 *
	 * @access	public
	 * @param	$aParent	JCAT_IViewContainer		视图的父对象(父视图 或 控制器)。注意：视图不应单独存在，必须有一个父对象！ 
	 * @return	void
	 */
	public function JJ_AddContactDialog(JCAT_IViewContainer $aParent,$sContactAddress='',$sRequestWord='')
	{
		// 调用父类构造函数 
		//<<[UnmodifiableBlock.Start]::Call Parent Construct::>>//
		$this->JCAT_GtkDialog('JJ_AddContactDialog','template.JJ_AddContactDialog.glade','JJ_AddContactDialog',$aParent) ;
		//<<[UnmodifiableBlock.End]::Call Parent Construct::>>// 

		$this->Initialize($sContactAddress,$sRequestWord) ;	
	}
	
	/**
	 * 初始化 视图 
	 *
	 * @access	protected
	 * @return	void
	 */
	protected function Initialize($sContactAddress,$sRequestWord)
	{				
		//<<[UnmodifiableBlock.Start]::View Children::>>//

		//<<[UnmodifiableBlock.End]::View Children::>>// 
		
		// 创建Gtk窗体 
		$this->Create() ;
		
		//<<[UnmodifiableBlock.Start]::UICtrl Children::>>//
		// 载入UI控件
		$sCurrentDirectory = dirname(__FILE__).'/' ;
		$this->AddUICtrl(JCAT_Package::ImportInstance($sCurrentDirectory.'Instances.UICtrl/instance.EntContact.php',null,$this)) ;
		$this->AddUICtrl(JCAT_Package::ImportInstance($sCurrentDirectory.'Instances.UICtrl/instance.SelGroup.php',null,$this)) ;
		$this->AddUICtrl(JCAT_Package::ImportInstance($sCurrentDirectory.'Instances.UICtrl/instance.EntNickname.php',null,$this)) ;
		$this->AddUICtrl(JCAT_Package::ImportInstance($sCurrentDirectory.'Instances.UICtrl/instance.EntSubscriptionMessage.php',null,$this)) ;
		//<<[UnmodifiableBlock.End]::UICtrl Children::>>// 
		
		$aSelGroup = $this->GetUICtrl('SelGroup') ;
		$aMainController = $this->GetParentController()->GetTopController() ;
		$ContactListView = $aMainController->GetMainWindow()->GetView('JJ_ContactListView') ;
		$arrGroups = $ContactListView->GetGroups() ;
		foreach ($arrGroups as $sGroupName)
		{
			$aSelGroup->AddOption($sGroupName,$sGroupName) ;
		}
		
		$this->SetUICtrlExchangeData('EntContact',$sContactAddress) ;
		$this->SetUICtrlExchangeData('EntSubscriptionMessage',$sRequestWord) ;
	}
	

	/**
	 * 对话框 “确定” 按钮事件函数 
	 * 
	 * @access	public
	 * @return	bool
	 */
	public function OnOK() 
	{
		// 在此添加代码 
		// TODO ... ...
		
		return parent::OnOK() ;
	}



	/**
	 * 对话框 “取消” 按钮事件函数 
	 * 
	 * @access	public
	 * @return	bool
	 */
	public function OnCancel() 
	{
		// 在此添加代码 
		// TODO ... ...
		
		return parent::OnCancel() ;
	}

}

?><?
/**
 * [注意!!]
 *	以下内容由 JCAT PHP Toolbox 自动维护，手动更改的内容会被 JCAT PHP Toolbox 抹除，
 *	同时还可能破坏格式，导致 JCAT PHP Toolbox 无法正常读取。
 */
/*<<[UnmodifiableBlock.Start]::Coder Dialog Data::>>&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&//
<<{{DocumentClass:ViewGtkDoc}}>>
eCVEQSU3RFQlNUQlQUYlREE4JTEwJTdEX2klN0ZEJUY5JTAxJTg1JTAwUSVEQiVCNCVBQSUwNCVGOSU2MGMlRDVJJTEzJUVDJUQwJUYwUmUlQzElMEIlMjElMjYlQjAlOTAlMEElQzIlMTUlRkYlQkRnJTlDJTdCbyUyQiVGNSVCNiUwRlYlMUNn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